package com.mz.ozy.mvp.view;

import android.app.Activity;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.AssetsBean;
import com.mz.ozy.bean.MyOrderBean;
import com.mz.ozy.bean.NetBean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/12/10.
 */

public interface MyOrderContract {

    interface View extends BaseView {

        void onInitSuccess(MyOrderBean myOrderBean);

        void onInitError(String msg);

        void onLoadMoreDataSuccess(MyOrderBean myOrderBean);

        void onLoadMoreDataError(String msg);

        void onLoadDataEnd();

        void onEmpty();

        void onConfirmSuccess(NetBean netBean);

        void onConfirmError(String msg);

        void onCancelOrderSuccess(NetBean netBean);

        void onCancelOrderError(String msg);

        void onDelOrderSuccess(NetBean netBean);

        void onDelOrderError(String msg);

        void geAssetsInfoSuccess(AssetsBean bean);

        void onPaySuccess(JSONObject orderBean);

        void onPayError(String s);
    }


    interface Presenter extends BasePresenter<View> {

        void initData(Activity activity, int type, boolean b);

        void loadMoreData(Activity activity);

        void confirm(Activity activity, String tseq);

        void cancelOrder(Activity activity, String tseq);

        void delOrder(Activity activity, String tseq);
    }
}
